package com.inspur.ynrespost.controller;

import com.inspur.ynrespost.service.CovAdministrativeAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/administrativeAreaService")
public class CovAdministrativeAreaController {

    @Autowired
    CovAdministrativeAreaService covAdministrativeAreaService;

    @RequestMapping(value = "getAll")
    public List<Map<String,Object>> getAPIServiceList(){
        return covAdministrativeAreaService.listServiceDefs(null);
    }
}
